pull: ref the thread default main context during init, unref in cleanup
authorVivek Dasmohapatra <vivek@collabora.co.uk>
Mon, 9 Sep 2013 14:54:26 +0000 (15:54 +0100)
committerColin Walters <walters@verbum.org>
Mon, 9 Sep 2013 16:06:01 +0000 (12:06 -0400)
commitf80282203428b723a732372b5e5a882779a62434
tree14f9c64d092204a886e8b4cdbf09a1be14f11c8b
parent3ff4b1874c738746f6c4d81a46f4b8e4d63d0bca
pull: ref the thread default main context during init, unref in cleanup

...get_thread_default returns NULL when the thread default is also the global
default, so this only shows up when running in a thread (eg g_task_run_in_thread)
src/libostree/ostree-repo-pull.c